home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -serious- / programming / other / mesa / mesa-glut / test / makefile.amigaos
Makefile  |  2000-02-23  |  2KB  |  83 lines

  1. # $Id: Makefile,v 3.3 1998/06/10 02:52:20 brianp Exp $
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  3.0
  5. # Copyright (C) 1995-1998  Brian Paul
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. # Makefile for GLUT-based demo programs for Unix/X11
  22.  
  23. # $Log: Makefile,v $
  24. # Revision 3.3  1998/06/10 02:52:20  brianp
  25. # added multiext example
  26. #
  27. # Revision 3.2  1998/04/21 23:58:41  brianp
  28. # added LIBDIR variable
  29. #
  30. # Revision 3.1  1998/02/21 01:31:56  brianp
  31. # added multitex and renormal demos
  32. #
  33. # Revision 3.0  1998/02/14 18:30:39  brianp
  34. # initial rev
  35. #
  36.  
  37. ROOT = ..
  38.  
  39. ##### MACROS #####
  40.  
  41. ## include-directory (replace by ${srcdir}/include later)
  42. INC_DIR = $(ROOT)/include
  43.  
  44. ## lib-directory (replace by ${srcdir}/lib later)
  45. LIB_DIR = $(ROOT)/lib
  46.  
  47. ## library dependencies
  48. LIB_DEP = $(LIB_DIR)/$(GLU_LIB).static    \
  49.     $(LIB_DIR)/$(GL_LIB).static
  50.  
  51. ## no libraries to build
  52. LIBS = 
  53.  
  54. ## no dirs to recurse
  55. DIRS = glut mui
  56.  
  57. ## sources to process
  58. SRCS = test.c triangles.c trianglesDB.c accum.c
  59.  
  60. ## programs to create
  61. PRGS = test triangles trianglesDB trianglesS accum
  62.  
  63. # MASTER-CONFIG #
  64.  
  65. include $(ROOT)/Make-config.AmigaOS
  66.  
  67. ##### RULES #####
  68.  
  69. ## implicit rule to make object-files
  70. %$(O): %.c
  71.     $(CC) -I$(INC_DIR) $(CFLAGS) $< -s -c -o $@
  72.  
  73. accum: accum$(O) $(PRG_DEP)
  74.     $(CC) -I. -I$(INC_DIR) $(CFLAGS) $< -lMesaGLtk $(LIB_LINK) -s -o $@
  75. test: test$(O) $(PRG_DEP)
  76.     $(CC) -I. -I$(INC_DIR) $(CFLAGS) $< -lMesaGLut $(LIB_LINK) -s -o $@
  77. triangles: triangles$(O) $(PRG_DEP)
  78.     $(CC) -I. -I$(INC_DIR) $(CFLAGS) $< $(LIB_LINK) -s -o $@
  79. trianglesDB: trianglesDB$(O) $(PRG_DEP)
  80.     $(CC) -I. -I$(INC_DIR) $(CFLAGS) $< $(LIB_LINK) -s -o $@
  81. trianglesS: trianglesS$(O) $(PRG_DEP)
  82.     $(CC) -I. -I$(INC_DIR) $(CFLAGS) $< $(LIB_LINK) -s -o $@
  83.